


<include file="Public:pagerForm" />


<script type="text/javascript">


	function BrowseServer(id){	

		var finder = new CKFinder();

		//这里使用了回调，可以参考CKfinder的API
		finder.basePath = '../';	// The path for the installation of CKFinder (default = "/ckfinder/").
		finder.selectActionFunction = SetFileField;
		finder.selectActionData = id;
		finder.popup();

	}
	function SetFileField( fileUrl,data ){	

		//ajax调用
		$.post('__URL__/updateImageUrl',
	    	    {	
		    	    'id':data["selectActionData"],	    	    
		    	    'imageurl':fileUrl 					
		    	},
				    function(data){
						alert(data.info);
						//window.location = "__URL__" ;				
						//$("#pageContent").loadUrl("__URL__/index");
						//$("#sidebar").loadUrl("__APP__/Public/menu");
				    	
				    },
			    'json');	
		
	}

</script>



<div class="pageContent">
<div class="pageHeader">
<form rel="pagerForm" onsubmit="return navTabSearch(this);"
	action="__URL__" method="post">

<div class="pageFormContent">
<p><label>博客标题：</label> <input name="title" type="text" size="30" />
</p>
<p><label>博客作者：</label> <input name="user" type="text" size="30" />
</p>

<div class="subBar">
<ul>
	<li>
	<div class="buttonActive">
	<div class="buttonContent">
	<button type="submit">查询</button>
	</div>
	</div>
	</li>
</ul>
</div>
</div>

</form>
</div>


<div class="panelBar">

</div>
<div id="bolgContent">
<table class="table" width="100%" layoutH="138">
	<thead>
		<tr>
			<th width="60">编号</th>
			<th width="100">博客标题</th>
			<th width="100">博客作者</th>
			<th>首页关联图片</th>
		</tr>
	</thead>
	<tbody>
		<volist id="vo" name="list">
			<tr target="sid_user" rel="{$vo['id']}">
				<td>{$vo['id']}</td>
				<td>{$vo['title']}</td>
				<td>{$vo['user']}</td>			
				<if condition=" $vo['imageurl'] neq '' ">
					<td><a href="__URL__/image/id/{$vo['id']}/type/blog" target="dialog" rel="dlg_page10" mask="true" title="首页关联图片"><span><img src="__PUBLIC__/Images/ok.gif"/></span></a>
									<span>
						<img src="__PUBLIC__/Images/file.gif" onclick="BrowseServer({$vo['id']});" />
					</span>
					</td>	
					<else/>
					<td><span><img src="__PUBLIC__/Images/error.gif"/></span>
					<span>
						<img src="__PUBLIC__/Images/file.gif" onclick="BrowseServer({$vo['id']});" />
					</span>
					</td>
				</if>			
			</tr>
		

		</volist>
	</tbody>
</table>
</div>
<div class="panelBar">
<div class="pages"><span>共{$totalCount}条</span></div>
<div class="pagination" targetType="navTab" totalCount="{$totalCount}"
	numPerPage="{$numPerPage}" pageNumShown="10"
	currentPage="{$currentPage}"></div>
</div>
</div>



